#!/bin/bash
mkpasswd.exe -l > /etc/passwd
mkgroup.exe -l > /etc/group
chmod.exe +r /etc/passwd
chmod.exe +r /etc/group
chmod.exe +rwx /var
ssh-host-config -y --name sshd --pwd cyg_server
cygrunsrv -S sshd

cd /home/administrator/
mkdir .ssh && chmod.exe 700 .ssh
cd .ssh/

{
cat <<'XUNLEI'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApWX8Hhoik25XbpTSmK3JAz5Az2TICQ5fvbuBAeC6R3rAVLvfESJXmzGlDv/Jp5Xx8jggEKMdjoZZjMYXA0vWkiet8NQYI9X0Px6d0+miFbroHzmW736jH/c0fcoDJ/zFuxRQin2xioPE/hElCNslmF4CFi62cVi3Xoo4boMmsy6WOqMB7kqvNi3/0MuXVhooXSuiJR9gB6KE3YKBRbOGjC+CKDMdNNL60pSuJfBIUfh7wl3CBsE/VrL9sn6WBUa6NG3tQrhlTkEFhyhd0+uraGzX0ZpElMDbxVomRaNLYmsnF1WasFwCo0T4y2zjKmc8ZdEwOH+w4yKJh1Yfv/KZqQ== root@localhost
XUNLEI
} >> authorized_keys
chmod.exe 600 authorized_keys

## setting color
alias ls='ls --color --show-control-chars --time-style=long-iso'
alias ll='ls -l --color --show-control-chars --time-style=long-iso'
